import { Component, OnInit } from '@angular/core';
import { Observable } from "rxjs/Observable";
import { BladeService } from "../../../shared/blade.service";
import { BladeData } from "app/shared/blade/blade-data";
import { TurboperCategoryListComponent } from "./turboper-category-list/turboper-category-list.component";
@Component({
  selector: 'app-turboper-category',
  templateUrl: './turboper-category.component.html',
  styleUrls: ['./turboper-category.component.css'],
  providers: [BladeService]
})
export class TurboperCategoryComponent implements OnInit {

  constructor(public bladeService: BladeService) { }

  ngOnInit() {
    this.createTurboperCategoryListBlade()
  }


  /**
   * 创建子状态列表弹出层
   * 
   * @memberof TurboperCategoryComponent
   */
  createTurboperCategoryListBlade() {
    let data: BladeData = new BladeData();
    data.id = "TurboperCategoryList";
    data.title = "子状态";
    data.subtitle = "子状态列表";
    data.isClosingDisabled = true;
    let farmListBlade = this.bladeService.createBlade(TurboperCategoryListComponent, data);
    this.bladeService.showBlade(farmListBlade);
  }


  /**
   * 是否可以离开
   * 
   * @returns {(boolean | Observable<boolean> | Promise<boolean>)} 
   * @memberof TurboperCategoryComponent
   */
  canDeactivate(): boolean | Observable<boolean> | Promise<boolean> {
    return true;
  }

}



// WEBPACK FOOTER //
// ./src/app/module/basic/turboper-category/turboper-category.component.ts